<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心弹窗演示</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #46b0fe, #6385ff);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .demo-container {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            text-align: center;
            min-width: 400px;
        }

        .title {
            font-size: 24px;
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
        }

        .description {
            color: #666;
            margin-bottom: 30px;
            line-height: 1.5;
        }

        .user-info {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 30px;
        }

        .avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, #46b0fe, #6385ff);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            margin-right: 20px;
        }

        .user-details {
            text-align: left;
        }

        .nickname {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }

        .mobile {
            color: #666;
            font-size: 14px;
        }

        .demo-btn {
            background: linear-gradient(135deg, #46b0fe, #6385ff);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 10px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .demo-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(70, 176, 254, 0.3);
        }

        .feature-list {
            text-align: left;
            margin-top: 30px;
            padding-top: 30px;
            border-top: 1px solid #eee;
        }

        .feature-item {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }

        .feature-icon {
            width: 20px;
            height: 20px;
            background: linear-gradient(135deg, #46b0fe, #6385ff);
            border-radius: 50%;
            margin-right: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
        }

        .code-info {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
        }

        .code-title {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
        }

        .code-path {
            font-size: 12px;
            color: #666;
            background: white;
            padding: 5px 10px;
            border-radius: 5px;
            margin-bottom: 5px;
            display: block;
        }

        .success-badge {
            display: inline-block;
            background: #52c41a;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            margin-top: 10px;
        }
    </style>
</head>
<body>
    <div class="demo-container">
        <h1 class="title">✨ 个人中心弹窗功能</h1>
        <p class="description">
            我已经成功为您的个人中心页面添加了弹窗修改昵称和头像的功能！
        </p>

        <div class="user-info">
            <div class="avatar">头</div>
            <div class="user-details">
                <div class="nickname">用户昵称</div>
                <div class="mobile">手机号：153****5340</div>
            </div>
        </div>

        <button class="demo-btn" onclick="showFeatures()">
            查看功能特性 📱
        </button>

        <div class="feature-list" id="features" style="display: none;">
            <h3 style="margin-bottom: 15px; color: #333;">🎯 新增功能特性</h3>
            
            <div class="feature-item">
                <div class="feature-icon">✓</div>
                <span>在个人中心右上角添加了<strong>编辑按钮</strong></span>
            </div>
            
            <div class="feature-item">
                <div class="feature-icon">✓</div>
                <span>点击编辑按钮弹出<strong>个人信息修改弹窗</strong></span>
            </div>
            
            <div class="feature-item">
                <div class="feature-icon">✓</div>
                <span>弹窗内可以<strong>直接修改头像</strong>（点击头像选择图片）</span>
            </div>
            
            <div class="feature-item">
                <div class="feature-icon">✓</div>
                <span>弹窗内可以<strong>直接修改昵称</strong>（输入框编辑）</span>
            </div>
            
            <div class="feature-item">
                <div class="feature-icon">✓</div>
                <span>支持<strong>上传进度显示</strong>和<strong>实时预览</strong></span>
            </div>
            
            <div class="feature-item">
                <div class="feature-icon">✓</div>
                <span>完整的<strong>错误处理</strong>和<strong>用户反馈</strong></span>
            </div>

            <div class="code-info">
                <div class="code-title">📁 新增文件：</div>
                <code class="code-path">components/user-profile-popup/user-profile-popup.vue</code>
                
                <div class="code-title" style="margin-top: 15px;">📝 修改文件：</div>
                <code class="code-path">pages/my/my.vue (添加弹窗集成)</code>
                
                <div class="success-badge">✅ 开发完成</div>
            </div>
        </div>
    </div>

    <script>
        function showFeatures() {
            const features = document.getElementById('features');
            const btn = document.querySelector('.demo-btn');
            
            if (features.style.display === 'none') {
                features.style.display = 'block';
                btn.textContent = '隐藏功能特性 📱';
                features.scrollIntoView({ behavior: 'smooth' });
            } else {
                features.style.display = 'none';
                btn.textContent = '查看功能特性 📱';
            }
        }
    </script>
</body>
</html>